package com.hmdp.utils;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class RedisData {
    private LocalDateTime expireTime;
    private Object data;
    
    @Override
    public String toString() {
        // 对于库存数据，我们存储为简单格式，避免Lua脚本解析复杂JSON
        return "{\"expireTime\":\"" + expireTime.toString() + "\",\"data\":" + data + "}";
    }
}